#include "Storage/StorageFactory.hpp"
#include "Storage/PackageStorage.hpp"
#include "Storage/ProjectStorage.hpp"

namespace Storage
{	

StorageFactory::~StorageFactory()
{

}

// ---------------------------------------------------------------------------------------------------------------------

bool StorageFactory::hasUnsavedChanges() const
{
	return const_cast< StorageFactory*>(this)->getPackageStorage().hasUnsavedChanges() 
		|| const_cast< StorageFactory*>(this)->getProjectStorage().hasUnsavedChanges();
}

} // namespace Storage
